package main

import (
	"fmt"
	"runtime"
)

func main() {
	_, file, line, ok := runtime.Caller(1)
	if !ok {
		fmt.Printf("runtime.Caller() failed\n")
		return
	}
	fmt.Println(file) // D:/golang_sdk/go/src/runtime/proc.go
	fmt.Println(line) // 250
}
